From: Eli Zaretskii Date: Mon, 9 Jan 2012 09:27:02 +0000 (+0800) Subject: Fix use of uninitialized variable (backport from trunk). X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~17^2~25 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c95bae65ee2b51185feaf1de198dcadf719f8052;p=emacs.git Fix use of uninitialized variable (backport from trunk). * xdisp.c (note_mouse_highlight): Initialize `part', to avoid a possible random value that matches one of those tested as condition to clear the mouse face. --- diff --git a/src/ChangeLog b/src/ChangeLog index c4a08bf0793..3730689e067 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-01-09 Eli Zaretskii + + * xdisp.c (note_mouse_highlight): Initialize `part', to avoid a + possible random value that matches one of those tested as + condition to clear the mouse face. + 2012-01-09 YAMAMOTO Mitsuharu * dispnew.c (scrolling_window): Truncate overlaps in copy diff --git a/src/xdisp.c b/src/xdisp.c index ebd660acc06..8e5cf3d8f3e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -23484,7 +23484,7 @@ note_mouse_highlight (f, x, y) int x, y; { Display_Info *dpyinfo = FRAME_X_DISPLAY_INFO (f); - enum window_part part; + enum window_part part = ON_NOTHING; Lisp_Object window; struct window *w; Cursor cursor = No_Cursor;